<div class="page-body">
    <br>
    <a class="btn btn-default purple" href="{:U('add',array('child_school_id'=>$_GET['child_school_id']))}"  style="margin-bottom: 15px;"><i class="fa fa-plus"></i>
        新增班级
    </a>
    <a class="btn btn-default purple" href="{:U('export',array('child_school_id'=>$_GET['child_school_id']))}" style="margin-bottom: 15px;"><i class="glyphicon glyphicon-cloud-download"></i>
        导出班级
    </a>
    <div class="row">
        <div class="col-xs-12 col-md-12">
            <div class="widget">
                <div class="widget-header ">
                    <span class="widget-caption"><if condition="$childschool_data[id]">“{$childschool_data.name}”的</if>班级列表</span>
                    <div class="widget-buttons">
                        <a href="#" data-toggle="maximize">
                            <i class="fa fa-expand"></i>
                        </a>
                        <a href="#" data-toggle="collapse">
                            <i class="fa fa-minus"></i>
                        </a>
                        <a href="#" data-toggle="dispose">
                            <i class="fa fa-times"></i>
                        </a>
                    </div>
                </div>
                <div class="widget-body">
                    <table class="table table-striped table-hover">
                        <thead>
                        <tr>
                            <th>
                                ID
                            </th>
                            <th>
                                班级名称
                            </th>

                            <th>
                                所属幼儿园
                            </th>
                            <th>
                                操作
                            </th>
                        </tr>
                        </thead>

                        <tbody>
                        <foreach name="classdata" item="v">
                            <tr>
                                <td>
                                    {$v.id}
                                </td>
                                <td>
                                    {$v.class_name}
                                </td>
                                <td>
                                    {$v.name}
                                </td>



                                <td>
                                    <a class="btn btn-danger btn-xs del-btn"
                                       data-href="{:U('classDel',array('class_id'=>$v['id']))}"><i
                                            class="fa fa-trash-o"></i>删除</a>
                                    <a class="btn btn-info btn-xs"
                                       href="{:U('edit',array('class_id'=>$v['id']))}">
                                        <i class="fa fa-edit"></i> 修改
                                    </a>
                                    <a class="btn btn-info btn-xs"
                                       href="{:U('exchange',array('class_id'=>$v['id'],'child_school_id'=>$_GET['child_school_id']))}">
                                        <i class="fa fa-edit"></i> 一键换书
                                    </a>
                                    <a class="btn btn-info btn-xs"
                                       href="{:U('allUntie',array('class_id'=>$v['id'],'child_school_id'=>$_GET['child_school_id']))}">
                                        <i class="fa fa-edit"></i> 整班解绑
                                    </a>
                                    <a class="btn btn-info btn-xs"
                                       href="{:U('studentList',array('class_id'=>$v['id']))}">
                                        <i class="fa fa-edit"></i> 查看学生
                                    </a>
                                </td>
                            </tr>
                        </foreach>
                        </tbody>
                    </table>
                    {$page}
                </div>
            </div>
        </div>
    </div>
</div>